/**
 * Tractus-X -  Digital Product Pass Application
 *
 * Copyright (c) 2022, 2024 BMW AG
 * Copyright (c) 2022, 2024 Henkel AG & Co. KGaA
 * Copyright (c) 2023, 2024 CGI Deutschland B.V. & Co. KG
 * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

.recursive-tree {
  ul {
    list-style-type: none;
    cursor: pointer;
  }
  li {
    margin-left: 24px !important;
  }

  .tile-container {
    display: flex;
    align-items: center;
    .loading {
      animation: rotate 3s infinite;
    }
    @keyframes rotate {
      100% {
        transform: rotate(360deg);
      }
    }
    .tile {
      position: relative;
      background-color: #f9f9f9;
      border-radius: 10px;
      padding: 15px 20px;
      margin: 4px;
      width: 400px;

      .counter {
        background-color: #1bbc6c;
        font-size: 12px;
        color: #ffffff;
        font-weight: bold;
        padding: 2px 6px;
        margin-left: 15px;
        border-radius: 6px;
      }
      .label {
        margin-bottom: 14px;
      }

      .tile-id {
        margin-top: 6px;
        color: #939393;
        line-break: anywhere;
      }
      .external-link {
        position: absolute;
        right: 14px;
        top: 14px;
        color: #0f71cb;
      }
    }

    .linked-tile {
      background-color: #f4fbfd !important;
    }

    .not-available {
      background-color: #ffffff;
      border: 1px solid #939393;
    }
    .icon-bg {
      padding: 1px;
      border-radius: 2px;
      color: #ffffff;
      margin-right: 4px;
    }
    .blue-bg {
      background-color: #0f71cb;
    }
    .gray-bg {
      background-color: #939393;
    }
  }
}
@media (max-width: 900px) {
  .recursive-tree {
    li {
      margin-left: 8px !important;
    }
  }
}
@media (max-width: 450px) {
  .recursive-tree {
    li {
      margin-left: 6px !important;
    }
    .tile-container {
      .tile {
        padding: 8px 20px;
      }
    }
  }
}
